package com.hntech.netty.chart;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;

/**
 * @Autho changqi.wu
 * @Date 路在脚下，使劲踩！
 */
public class ServerBizHandler extends ChannelInboundHandlerAdapter {

    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        super.channelRead(ctx, msg);
        System.out.println("read msg : " + msg);

        ctx.write("you are lost + " + msg);
        ctx.flush();
    }
}
